Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix for #585 - FP when there is a comment in when entry #591

Merged
merged 2 commits into from
Nov 30, 2020

Conversation

petertrr
Copy link
Member

What's done:

  • Fixed logic
  • Added test

This pull request closes #585

### What's done:
* Fixed logic
* Added test
@codecov
Copy link

codecov bot commented Nov 30, 2020

Codecov Report

Merging #591 (6f809ec) into master (11d2c4c) will increase coverage by 0.02%.
The diff coverage is 100.00%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master     #591      +/-   ##
============================================
+ Coverage     80.78%   80.81%   +0.02%     
  Complexity     1704     1704              
============================================
  Files            87       87              
  Lines          4357     4358       +1     
  Branches       1342     1342              
============================================
+ Hits           3520     3522       +2     
+ Misses          298      297       -1     
  Partials        539      539              
Flag Coverage Δ Complexity Δ
unittests 80.81% <100.00%> (+0.02%) 0.00 <0.00> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ Complexity Δ
.../ruleset/rules/BracesInConditionalsAndLoopsRule.kt 86.36% <100.00%> (+0.20%) 29.00 <0.00> (ø)
...tlin/org/cqfn/diktat/ruleset/utils/AstNodeUtils.kt 83.72% <0.00%> (+0.46%) 0.00% <0.00%> (ø%)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 11d2c4c...6f809ec. Read the comment docs.

Copy link
Collaborator

@kentr0w kentr0w left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lgtm

Copy link
Collaborator

@aktsay6 aktsay6 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@petertrr petertrr merged commit 047ad05 into master Nov 30, 2020
@petertrr petertrr deleted the bugfix/when-branches#585 branch November 30, 2020 08:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

NO_BRACES_IN_CONDITIONALS_AND_LOOPS FP when when branch has comments and a single statement
3 participants